//
//  KZGlobalApi.m
//  xiaorizi
//
//  Created by kun on 15/10/23.
//  Copyright © 2015年 origin. All rights reserved.
//

#import "KZGlobalApi.h"

@implementation KZGlobalApi



+ (NSString *) meitianUrl
{
    return @"http://api.xiaorizi.me/api/catapi/?cityid=101&offset=30&page=1&token_time=1445605284&app_token=A7FA81C275A4438A&version=2.4.5&channel=iTunesTest&uuid=A8A67768-2252-4E39-A30C-4BA27D91874E&cur_city_id=0";
}

+ (NSString *) meitianCachePath
{
    NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
    return [paths[0] stringByAppendingPathComponent:@"meitian.json"];
}



+ (NSString *) meijiUrl
{
    return @"http://api.xiaorizi.me/api/catapi/?cityid=101&offset=30&page=1&token_time=1445605284&app_token=A7FA81C275A4438A&version=2.4.5&channel=iTunesTest&uuid=A8A67768-2252-4E39-A30C-4BA27D91874E&cur_city_id=0";
}
+ (NSString *) meijiCachePath
{
    NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
    return [paths[0] stringByAppendingPathComponent:@"tandian.json"];

}


//2 体验界面
+ (NSString *) experienceUrl
{
    return @"http://api.xiaorizi.me/api/catapi/?cityid=101&offset=30&page=1&token_time=1445605284&app_token=A7FA81C275A4438A&version=2.4.5&channel=iTunesTest&uuid=A8A67768-2252-4E39-A30C-4BA27D91874E&cur_city_id=0";

}
+ (NSString *) experienceUrlCachePath
{
    NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
    return [paths[0] stringByAppendingPathComponent:@"experience.json"];
}



//3 分类界面借口
+ (NSString *) categoryUrl
{
    return @"http://api.xiaorizi.me/api/catapi/?cityid=101&offset=30&page=1&token_time=1445605284&app_token=A7FA81C275A4438A&version=2.4.5&channel=iTunesTest&uuid=A8A67768-2252-4E39-A30C-4BA27D91874E&cur_city_id=0";
}
+ (NSString *) categoryCachePath
{
    NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
    return [paths[0] stringByAppendingPathComponent:@"category.json"];
    
}

//需要扩展实现
+ (NSString *) categoryEventsUrl:(NSInteger) tagID
{
    return @"http://api.xiaorizi.me/api/catapi/?cityid=101&offset=30&page=1&token_time=1445605284&app_token=A7FA81C275A4438A&version=2.4.5&channel=iTunesTest&uuid=A8A67768-2252-4E39-A30C-4BA27D91874E&cur_city_id=0";
}

+ (NSString *) categoryEventsCachePath:(NSInteger) tagID
{
    NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
    return [paths[0] stringByAppendingPathComponent:@"categoryEvent.json"];
}



//地图数据存储
+ (NSString *) nearByUrl:(NSInteger) tagID
{
    return @"http://api.xiaorizi.me/api/catapi/?cityid=101&offset=30&page=1&token_time=1445605284&app_token=A7FA81C275A4438A&version=2.4.5&channel=iTunesTest&uuid=A8A67768-2252-4E39-A30C-4BA27D91874E&cur_city_id=0";
}
+ (NSString *) nearByCachePath:(NSInteger) tagID
{
    NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
    return [paths[0] stringByAppendingPathComponent:@"nearby.json"];
}


@end
